﻿<?xml version="1.0"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Blazing.BusinessObjects" namespace="Blazing.BusinessObjects.Assets">
  <class name="Asset" table="assets" lazy="false" dynamic-insert="true" dynamic-update="true">

    <id name="ID" column="assetid" type="Int32">
      <generator class="native" />
    </id>
    <timestamp column="rowstamp" name="RowStamp" />
    <property name="Name" length="100" not-null="true" />
    <property name="Description" length="150" />

    <many-to-one name="AssetType" column="assettypeid" class="AssetType" not-null="true" />
    <property name="FilePath" length="100" />
    <property name="FileName" length="100" />

    <set name="TaxonomyTags" table="assettaxonomytags">
      <key column="assetid"/>
      <many-to-many class="Blazing.BusinessObjects.Tagging.TaxonomyTag" column="taxonomytagid"/>
    </set>
    
  </class>
</hibernate-mapping>
